<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:composite="http://xmlns.jcp.org/jsf/composite">

    <h:body>
        <composite:interface>
            <composite:attribute name="bean" required="true"/>
        </composite:interface>

        <composite:implementation>
            <p:panel styleClass="noPaddingTitle noMargin noBorder searchFilterContainer inlineBlock verticalAlignTop " rendered="#{cc.attrs.bean.search.sex!=null or cc.attrs.bean.search.minimumAge!=null or cc.attrs.bean.search.maximumAge!=null or cc.attrs.bean.search.residenceCountry!=null or cc.attrs.bean.search.residenceTown!=null or cc.attrs.bean.search.residenceProvince!=null or cc.attrs.bean.search.minimumTimeAvailability!=null or cc.attrs.bean.search.requiredVehicle!=null}">  
                <div class="yellowSlimBorderSearch panelFilterSearchMargin">
                    <p:panel styleClass="noPadding noMargin">
                        <div class="lightYellowBackground">
                            <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop">
                                <h:outputText  value="#{messages.Type}"  />
                            </div>
                            <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop ">
                                <h:outputText  value="#{messages.Personal}" />
                            </div>
                        </div>
                    </p:panel>
                    <p:panel styleClass="noPadding noMargin" rendered="#{cc.attrs.bean.search.sex!=null}">
                        <div class="lightYellowBackground">
                            <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop">
                                <h:outputText  value="#{messages.Sex}"  />
                            </div>
                            <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop ">
                                <h:outputText  value="#{sexBundle[cc.attrs.bean.search.sex.idSex.toString()]}" />
                            </div>
                        </div>
                    </p:panel>
                    <p:panel styleClass="noPadding noMargin" rendered="#{cc.attrs.bean.search.minimumAge!=null or cc.attrs.bean.search.maximumAge!=null}">
                        <div class="lightYellowBackground">
                            <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop">
                                <h:outputText  value="#{messages.Age}"  />
                            </div>
                            <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop ">
                                <h:outputText rendered="#{cc.attrs.bean.search.minimumAge==null and cc.attrs.bean.search.maximumAge!=null}" value="#{messages.LessThan}"/>
                                <h:outputText rendered="#{cc.attrs.bean.search.minimumAge!=null and cc.attrs.bean.search.maximumAge==null}" value="#{messages.MoreThan}"/>
                                <h:outputText rendered="#{cc.attrs.bean.search.minimumAge!=null}" value="#{cc.attrs.bean.search.minimumAge}"/>
                                <h:outputText rendered="#{cc.attrs.bean.search.minimumAge!=null and cc.attrs.bean.search.maximumAge!=null}" value="-"/>
                                <h:outputText rendered="#{cc.attrs.bean.search.maximumAge!=null}" value="#{cc.attrs.bean.search.maximumAge}"/>
                            </div>
                        </div>
                    </p:panel>
                    <p:panel styleClass="noPadding noMargin" rendered="#{cc.attrs.bean.search.residenceCountry!=null}">
                        <div class="lightYellowBackground">
                            <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop">
                                <h:outputText  value="#{messages.CountryText}"  />
                            </div>
                            <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop ">
                                <h:outputText value="#{countryBundle[cc.attrs.bean.search.residenceCountry.idCountry.toString()]}"/>
                            </div>
                        </div>
                    </p:panel>
                    <p:panel styleClass="noPadding noMargin" rendered="#{cc.attrs.bean.search.residenceProvince!=null}">
                        <div class="lightYellowBackground">
                            <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop">
                                <h:outputText  value="#{messages.ProvinceText}"  />
                            </div>
                            <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop ">
                                <h:outputText value="#{cc.attrs.bean.search.residenceProvince.description}"/>
                            </div>
                        </div>
                    </p:panel>
                    <p:panel styleClass="noPadding noMargin" rendered="#{cc.attrs.bean.search.residenceTown!=null}">
                        <div class="lightYellowBackground">
                            <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop">
                                <h:outputText  value="#{messages.TownText}"  />
                            </div>
                            <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop ">
                                <h:outputText value="#{cc.attrs.bean.search.residenceTown.description}"/>
                            </div>
                        </div>
                    </p:panel>
                    <p:panel styleClass="noPadding noMargin" rendered="#{cc.attrs.bean.search.minimumTimeAvailability!=null}">
                        <div class="lightYellowBackground">
                            <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop">
                                <h:outputText  value="#{messages.Availability}"  />
                            </div>
                            <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop ">
                                <h:outputText value="#{timeAvailabilityBundle[cc.attrs.bean.search.minimumTimeAvailability.idTimeAvailability]}"/>
                            </div>
                        </div>
                    </p:panel>

                    <p:panel styleClass="noPadding noMargin" rendered="#{cc.attrs.bean.search.requiredVehicle!=null and cc.attrs.bean.search.requiredVehicle}">
                        <div class="lightYellowBackground">
                            <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop">
                                <h:outputText  value="#{messages.Vehicle}"/>
                            </div>
                            <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop ">
                                <h:outputText value="#{messages.Obligatory}" styleClass="block" rendered="#{cc.attrs.bean.search.requiredVehicle!=null and cc.attrs.bean.search.requiredVehicle}"/>
                            </div>
                        </div>
                    </p:panel>
                    <div class="lightYellowBackground">
                        <div class="internalLeftColumnSearchFilter colorWhite inlineBlock verticalAlignTop"></div>
                        <div class=" internalRightColumnSearchFilter inlineBlock verticalAlignTop">
                            <p:commandButton styleClass="grayBackgroundStrong deleteCategoryButton" value="#{messages.Remove}" actionListener="#{cc.attrs.bean.removePersonalRequeriments()}" update=":createSearchForm:searchPanel :facesPanel :totalFacesForm :createSearchForm:addFilterPanel" process="@this"></p:commandButton> 
                        </div>
                    </div>
                </div>
            </p:panel>
        </composite:implementation>
    </h:body>
</html>